/*
 *  $Id: Disperse.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Water.Spells {
    public class Disperse: SpellCard<Creature> {
        public Disperse(): base("001_w_s_disperse") {
            Level = CompleteLevel.Final;
            Element = ElementType.Water;
            Value = 100;
            Target = new CreatureTarget(CreatureTarget.Both.Notice, true, true, IsMana4);
            AddManaCost(ElementType.Water, 1);
        }

        private static bool IsMana4(TargetRequest request, Creature cr) { return cr.Card.GetSumMana() <= 4; }

        protected override void DoAction(TargetArgs<Creature> args) {
            args.Target.ReturnToHand();
        }
    }
}
